import 'package:json_annotation/json_annotation.dart';

part 'captcha.g.dart';

@JsonSerializable()
class CaptchaReq {
  final String mobile;
  final String areaCode;
  //申请类型：1.忘记密码，2.注册
  final String type;

  CaptchaReq(this.mobile, this.areaCode, this.type);

  factory CaptchaReq.fromJson(Map<String, dynamic> json) =>
      _$CaptchaReqFromJson(json);

  Map<String, dynamic> toJson() => _$CaptchaReqToJson(this);
}